
package profiler;

/**
 *
 * @author root
 */
public class ProfileObj {

	private String _id = "";
	private double _time = 0;
	private long _start  = 0;
	private long _end  = 0;
	private boolean _log_scribe  = false;
	private int _log_scribe_id  = -1;

	public ProfileObj(String id, long start) {
		this(id,start,false,0);
	}

	public ProfileObj(String id, long start, boolean log_scribe, int log_scribe_id) {
		this._id = id;
		this._start = start;
		this._log_scribe = log_scribe;
		this._log_scribe_id = log_scribe_id;
	}

	public void setEndTime(long end) {
		this._end = end;
		this._time = (this._end - this._start) / (double)1000000;
	}

	public int getLogScribeId() {
		return this._log_scribe_id;
	}

	public boolean getIsLogScribe() {
		return this._log_scribe;
	}

	public double getTime() {
		return this._time;
	}

	public String getID() {
		return this._id;
	}

	public long getStartTime() {
		return this._start;
	}

	public long getEndTime() {
		return this._end;
	}

}
